<?php

/**
* @current commentcontent.php
* @author   LiuYang <liu_yang@haibao.com>
* @date 2016年12月14日 上午10:53:46
*/
namespace haibao\comment\business;

use \haibao\comment\data\CommentContent as CommentContentData;

class CommentContent extends \haibao\cms\business\Base{
    public static function saveCommentContent($commentContent){
        $commentContentData = new CommentContentData();
        $commentContentData->add($commentContent);
    }
    public static function adoptCommentContentByCommentId($replyCommentId,$commentId){
        if(!$replyCommentId || !$commentId){
            throw new BusinessException('评论Id或主评论Id不能为空！');
        }
        $commentContentData = new CommentContentData();
        $commentContentData->adoptCommentContentByCommentId($replyCommentId,$commentId);
    }
}